const express = require("express");
const router = express.Router();
const consultationController = require("../controllers/consultations.controller.js");
const { verifyToken, isNurse } = require("../middleware/auth.middleware.js");

router.post("/", verifyToken, consultationController.createConsultation);
router.get("/", verifyToken, consultationController.getConsultations);
router.put(
  "/:consultationId/status",
  verifyToken,
  isNurse,
  consultationController.updateConsultationStatus
);

module.exports = router;
